<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增学生信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" >
    <form class="form-horizontal m" id="form-customer-edit" >
        <input name="id" class="form-control" type="hidden" th:value="${customer.id}">
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名：</label>
            <div class="col-sm-8">
                <input disabled="disabled" name="name" class="form-control" readonly type="text" th:value="${customer.name}">
            </div>
        </div>

        <div class="form-group" readonly>
            <label class="col-sm-3 control-label">性别：</label>
            <div class="col-sm-8" readonly>
                <input disabled="disabled" name="sex" class="form-control" readonly type="text" th:value="${customer.sex}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所属公司名称：</label>
            <div class="col-sm-8">
                <input disabled="disabled" name="company" readonly class="form-control" type="text" th:value="${customer.company}">
            </div>
        </div>
        <div class="form-group" readonly>
            <label class="col-sm-3 control-label">联系方式：</label>
            <div class="col-sm-8">
                <input disabled="disabled" name="telephone" readonly class="form-control" type="text" th:value="${customer.telephone}">
            </div>
        </div>
        <div class="form-group" readonly>
            <label class="col-sm-3 control-label">联系地址：</label>
            <div class="col-sm-8">
                <input disabled="disabled" name="address" readonly class="form-control" type="text" th:value="${customer.address}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态：</label>
            <div class="col-sm-8">
                <input disabled="disabled" name="status" class="form-control" readonly type="text" value="不可用" th:if="${customer.status}==0">
                <input disabled="disabled" name="status" class="form-control" readonly type="text" value="可用" th:if="${customer.status}==1">
            </div>
        </div>
        <div class="form-group" >
            <label class="col-sm-3 control-label">创建人：</label>
            <div class="col-sm-8" >
                <input disabled="disabled" name="sysCreateUserId" readonly class="form-control" type="text" th:value="${customer.sysCreateUserId}">
<!--                <input disabled="disabled" name="sysCreateUserId" readonly class="form-control" type="text" th:value="${customer.createUser.userName}">-->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">创建时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <input disabled="disabled" name="createTime" readonly class="form-control" placeholder="yyyy-MM-dd" type="text" th:value="${#dates.format(customer.createTime, 'yyyy-MM-dd HH:mm:ss')}">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">描述：</label>
            <div class="col-sm-8">
                <input name="sysCreateUserId" readonly disabled="disabled" class="form-control" type="text" th:value="${customer.mkDesc}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所属区域：</label>
            <div class="col-sm-2" readonly>
                <select name="sysCityId"  readonly class="city form-control m-b" disabled="disabled">
                    <option readonly  th:each=" c : ${cityList}"  th:value="${c.cityId}" th:text="${c.cityName}" th:selected="${customer.sysCityId} eq ${c.cityId}" ></option>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "market/customer"
</script>
</body>
</html>